From 8419bc2fd9060e21f00d7e1654a399732b9ae632 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sun, 30 Apr 2006 09:52:13 +0100 Subject: [PATCH] Allow architectures to define their own privcmd_mmap() by introducing HAVE_ARCH_PRIVCMD_MMAP. Signed-off-by: Isaku Yamahata --- linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c index a5b9c73813..1c9c21addd 100644 --- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c +++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c @@ -241,6 +241,7 @@ static int privcmd_ioctl(struct inode *inode, struct file *file, return ret; } +#ifndef HAVE_ARCH_PRIVCMD_MMAP static int privcmd_mmap(struct file * file, struct vm_area_struct * vma) { /* DONTCOPY is essential for Xen as copy_page_range is broken. */ @@ -248,6 +249,7 @@ static int privcmd_mmap(struct file * file, struct vm_area_struct * vma) return 0; } +#endif static struct file_operations privcmd_file_ops = { .ioctl = privcmd_ioctl, -- 2.30.2